package weekend3;

public class StringDemo {
    public static void main(String[] args) {

        String str="   再多一眼看一眼就会爆炸，再近一点靠近点快被融化---cxk   ";
        System.out.println(str.length());

        str=str.trim();
        System.out.println(str);

        boolean b=str.startsWith("多一眼");
        boolean b1=str.endsWith("cxk");
        System.out.println(b);
        System.out.println(b1);

        String str1=str.toUpperCase();
        System.out.println(str1);

        System.out.println(str.charAt(18));

        System.out.println(str.indexOf("一"));
        System.out.println(str.lastIndexOf("一"));

        String str2=str.substring(4,11);
        System.out.println(str2);

        double price=18.88;
        String.valueOf(price);//静态方法





    }
}
